package com.bdqn.crm.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bdqn.crm.mybatis.IService;
import com.bdqn.crm.pojo.Pagee;
import com.bdqn.crm.pojo.SysUser;
import org.apache.ibatis.annotations.Param;

import org.springframework.data.domain.Pageable;

import java.util.List;

public interface SysUserService extends IService<SysUser> {

    SysUser getlogin(String usrName);

//    Page<SysUser> findUsers(String usrName, Long roleId, Pageable pageable);

//    /**
//     * 分页查找系统用户
//     *
//     * @param sysUser
//     * @param page
//     * @return
//     */
//    List<SysUser> getPageList(SysUser sysUser, Pagee page);

//    PageBean<SysUser> pages(String usrName, Long usrRoleId, Integer pageIndex);


    IPage<SysUser> page(String usrName, Long roleId, Page page);


    /**
     * 根据id拿到数据
     * @param usrId
     * @return
     */
    SysUser getUser(Long usrId);

    boolean deleSysUser(Long usrId);

    SysUser getSysUser(Long usrId);

    /**
     * 密码加密
     * @param encryptPassword
     * @return
     */
    String encryptPassword(Object  encryptPassword);


}
